﻿
using AutoMapper;
using BCDto.Common.Dictionary;
using BCEntity.Common.Dictionary;

namespace BCService.MapperProfiles.Common.Dictionary
{
    public class DictionaryReferenceProfile : Profile
    {
        public DictionaryReferenceProfile()
        {

            //字典引用
            CreateMap<DictionaryReferenceDto, DictionaryReferenceEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<DictionaryReferenceRequestDto, DictionaryReferenceEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<DictionaryReferenceEntity, DictionaryReferenceDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();

        }
    }
}
